package com.har.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author macwy
 * @Title:har-finance
 * @Package com.har.common.constant
 * @Description 常量配置
 * @date 2018/8/1 14:47
 * @Version 1.0
 */
public class CodeConstant {


    /**
     * 订单途径
     */
    @AllArgsConstructor
    public  enum  ORDER_CHANNEL{

        HT(1,"华泰"),
        JD(2,"京东");

        @Getter
        private int code;

        @Getter
        private String msg;
    }


    /**
     * 支付或退款
     */
    @AllArgsConstructor
    public  enum  ORDER_PAY_REFUND{

        PAY(1,"支付"),
        REFUND(2,"退款");

        @Getter
        private int code;

        @Getter
        private String msg;
    }


    /**
     * 支付途径
     */
    @AllArgsConstructor
    public  enum  ORDER_TRADE_TYPE{

        PC("01","PC支付"),
        MOBILE("02","移动支付");

        @Getter
        private String code;

        @Getter
        private String msg;
    }


    /**
     * 支付状态
     */
    @AllArgsConstructor
    public  enum  ORDER_PAY_STATUS{

        PAY_COMMit(0,"支付提交"),
        PAYING(1,"支付中"),
        PAY_SUCCESS(2,"支付成功"),
        PAY_FAIL(3,"支付失败"),
        INSURE_SUCCESS(4,"出单成功"),
        INSUREING(5,"出单中"),
        INSURE_FAIL(6,"出单失败");

        @Getter
        private int code;

        @Getter
        private String msg;
    }

    /**
     * 微信appid
     */
    public static final String APPID="";

}
